namespace BXS.API.Models
{
    /// <summary>
    /// 商品模型
    /// </summary>
    public class Product
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 分类
        /// </summary>
        public string Category { get; set; } = string.Empty;

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 原价
        /// </summary>
        public decimal OriginalPrice { get; set; }

        /// <summary>
        /// 库存
        /// </summary>
        public int Stock { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; } = "active";

        /// <summary>
        /// 是否热门
        /// </summary>
        public bool IsHot { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsRecommend { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTime { get; set; } = string.Empty;

        /// <summary>
        /// 商品图片
        /// </summary>
        public string Image { get; set; } = string.Empty;
    }

    /// <summary>
    /// 商品创建请求
    /// </summary>
    public class CreateProductRequest
    {
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 分类
        /// </summary>
        public string Category { get; set; } = string.Empty;

        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 原价
        /// </summary>
        public decimal OriginalPrice { get; set; }

        /// <summary>
        /// 库存
        /// </summary>
        public int Stock { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; } = "active";

        /// <summary>
        /// 是否热门
        /// </summary>
        public bool IsHot { get; set; }

        /// <summary>
        /// 是否推荐
        /// </summary>
        public bool IsRecommend { get; set; }

        /// <summary>
        /// 商品图片
        /// </summary>
        public string Image { get; set; } = string.Empty;
    }

    /// <summary>
    /// 商品更新请求
    /// </summary>
    public class UpdateProductRequest : CreateProductRequest
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public int Id { get; set; }
    }
} 